package org.chnxi.study.springcloud.dubbo.shiro.auth.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.BinaryOperator;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

    private String password;

    private String mob;

    private String email;

    private Integer valid;

    private String pticket;

    private Integer roleId;


    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String PASSWORD = "password";

    public static final String MOB = "mob";

    public static final String EMAIL = "email";

    public static final String VALID = "valid";

    public static final String PTICKET = "pticket";

    public static final String ROLE_ID = "role_id";

    public static void main(String[] args) throws InterruptedException {
        BinaryOperator<Integer> bo = BinaryOperator.maxBy(Comparator.naturalOrder());
        ArrayList<byte[]> bytes = new ArrayList<>();
        while (true){
            byte[] data = new byte[256];
            bytes.add(data);
            TimeUnit.MILLISECONDS.sleep(1);
        }
    }

}
